package com.svse.services.impl;

import com.svse.entity.DemoEntity;
import com.svse.dao.DemoMapper;
import com.svse.services.DemoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 李宇航
 * @since 2019-08-18
 */
@Service
@Transactional(propagation=Propagation.NESTED,isolation=Isolation.DEFAULT,readOnly = false,rollbackFor=Exception.class)
public class DemoServiceImpl extends ServiceImpl<DemoMapper, DemoEntity> implements DemoService {


    @Autowired
    private DemoMapper demoMapper;


    @Override
    public void saveBatch(List<DemoEntity> demoEntityList) {
        super.saveBatch(demoEntityList);
    }
}
